# d={}
# print(type(d))
d1 = {"name":"rosy","age":26,"addr":"成都"}
# d2 =dict([("name","rosy"),("age",26)])
# d3 = dict(name="rosy",age=26)
# print("d1",d1)
# print("d2",d2)
# print("d3",d3)
#
# d3["addr"] = "四川成都"#曾
# print("d3曾",d3)
# del(d3["age"])#删
# print("d3删",d3)
# d3["addr"]="浙江杭州"  #改
# print("d3改",d3)
print("d3查",d1.get("name"))#查
# print(d3["addr"])

print(len(d1))
print(d1.keys())
print(d1.values())
print(d1.items())

# d1 = {"name":"rosy","age":26,"addr":"成都","addr":"杭州"}
# print(d1)

# 列表是否可以作为key值,元组呢，none呢
# l = ["a","b"]
# d = {l:"nja"}
#
# print(d)
# t = (1,2,)
# d = {t:"sdf"}
# print(d)







